<div id="header">

    <div class="header-left">
        <a href="<?php echo $root_page;?>">
            <img src="/public/images/them2/logo2.jpg" width="78" height="78">
        </a>
    </div>
    <div class="header-right">
        <div class="hd-right-left">
            <div class="hd-rg-left-top">

                <ul>
                    <li><a href="<?php echo $root_page;?>/tintuc/" title="Tin tức">Tin tức</a><span>|</span></li>
                    <li><a href="" title="Đăng ký">Đăng ký</a><span>|</span></li>
                    <li><a href="" title="Đăng nhập">Đăng nhập</a></li>
                </ul>
            </div>
            <div class="hd-rg-left-bottom">

                <ul>
                    <li class="header-menu-deal">
                        <a class='header-menu-deal-a' title=""></a>
                    </li>
                    <li class="header-menu-deal">
                        <a class='header-menu-deal-a'></a>
                    </li>

                    <li class='txtSeach'>
                        <input type="text" id="txtSearch" /></li>

                    <li class='btnSeach'><a href="/" id="btnSearch" title="Tìm kiếm"></a></li>
                </ul>
            </div>
        </div>
        <div class="hd-right-right">
            <a href="<?php echo $root_page;?>/order/chi-tiet-gio-hang.html" title="Giỏ hàng của bạn"><span id="count_shopping_cart"><?php echo $totalProduct;?></span>
            </a>
        </div>
        <div class="hd-right-menu-search" style="display: none;">


        </div>
    </div>

</div>
<div class="clear">
</div>
<div id="menu-home-item">
    <?php $i = 1;
    foreach ($aryRootCategory as $key => $rootCategory) { ?>

        <div class="outlinemenu" id="menuitemchid<?php echo $i; ?>" style="display: none;">
            <div class="menudrop_content">
                <div class="menu_category_product">
                    <div style="left: 2%;position: absolute;top: 0;width: 50%;">
<?php $n = 1;
        foreach ($arySubcategory[$rootCategory['category_id']]['sub_category'] as $key2 => $sub) {
 ?>
                    <p style="padding: 4px 0;"><a href="<?php echo $root_page ?>/danhmuc/<?php echo $sub['category_id']; ?>/<?php echo $sub['category_name_filter']; ?>.html"><span><?php echo $sub['category_name']; ?></span></a></p>
<?php if ($n % 6 == 0) { ?>
                    </div><div style="position: absolute;right: 0;top: 0;width: 50%;">
<?php } ?>

<?php $n++;
                } ?>
                </div>
            </div>
        </div>
    </div>


<?php $i++;
            } ?>

</div>
        <ul id="menu-home">
            <li class="first"><a href="/"><span>&nbsp;&nbsp;TRANG CHỦ</span></a></li>
<?php $i = 1;
            $total = count($aryRootCategory);
            foreach ($aryRootCategory as $key => $value) { ?>
                <li class="<?php echo ($i == $total) ? 'last' : ''; ?>">
                    <a id="menuitem<?php echo $i; ?>"  href="/danhmuc/<?php echo $value['category_id']; ?>/<?php echo $value['category_name_filter']; ?>.html" _outlinemenupos="<?php echo $i;?>"><span><?php echo $value['category_name']; ?></span></a>
                </li>
<?php $i++;
            } ?>
</ul>
<div class="clear">
</div>
<div id='promotion-banner'>
    <ul class="promotion-banner-cart">
        <li><a href="/AllBrand.aspx" title="Tất cả các nhãn"></a></li>

        <li>&nbsp;<a href="/AboutUs.aspx?CategoryID=8" title="Chăm sóc khách hàng"></a></li>

        <li>&nbsp;<a href="/RecruitmentList.aspx" title="Tuyển dụng"></a></li>
        <li style="position: relative;">&nbsp;<a style="cursor: pointer;" id='home-video-adv-popup'
                                                 title="Video"></a>

        </li>
    </ul>
    <div class="pro-banner-call-order">

        <span class="pro-banner-call-img"></span><span>Đặt hàng qua điện thoại <b style="font-size: 13px;color: #c60c18;">  04.3990.9631</b></span>
    </div>
</div>

<div class="clear" style="height: 3px;">
</div>